<?php 
require("dbFunctions.php");

$user = $_POST['user'];
$pass = $_POST['pass'];

$pass = md5($pass);
$tabl = "user";

login($user, $pass, $tabl);

if(isset($_SESSION['user'])){
	header("location:../home.php?p=home");
	}else{
	echo("OCORREU UM ERRO - Login nao efetuado");	
		}
?>